package com.aguo.wxpush.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

/**
 * @Author: wenqiaogang
 * @DateTime: 2022/8/23 12:51
 * @Description: TODO
 */
@Component
@ConfigurationProperties(prefix = "wx.config")
public class ConfigConstant {
    @Value("${wx.config.appId}")
    private String appId;
    @Value("${wx.config.appSecret}")
    private String appSecret;
    @Value("${wx.config.templateId}")
    private String templateId;
    @Value("${wx.config.openidList:}")
    private ArrayList<String> openidList;

    public String getAppId() {
        return appId;
    }

    @Value("${weather.config.appid}")
    private String weatherAppId;

    @Value("${weather.config.appSecret}")
    private String weatherAppSecret;
    @Value("${weather.config.city}")
    public String city;
    @Value("${message.config.togetherDate}")
    private String togetherDate;
    @Value("${message.config.herBirthday}")
    private String herBirthday;


    @Value("${message.config.herName}")
    private String herName;
    @Value("${message.config.enableOther:false}")
    private boolean enableOther;
    @Value("${message.config.histhday}")
    public String hisBirthday;

    @Value("${message.config.message}")
    private String message;
    @Value("${ApiSpace.enableDaily}")
    private boolean enableDaily = true;
    @Value("${ApiSpace.token}")
    public String token;

    @Value("${ApiSpace.api}")
    public String api;

    public String getHerName() {
        return herName;
    }

    public void setHerName(String herName) {
        this.herName = herName;
    }

    public boolean isEnableOther() {
        return enableOther;
    }

    public void setEnableOther(boolean enableOther) {
        this.enableOther = enableOther;
    }

    public String getApi() {
        return api;
    }

    public void setApi(String api) {
        this.api = api;
    }

    public boolean isEnableDaily() {
        return enableDaily;
    }

    public void setEnableDaily(boolean enableDaily) {
        this.enableDaily = enableDaily;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }


    public String getWeatherAppId() {
        return weatherAppId;
    }

    public void setWeatherAppId(String weatherAppId) {
        this.weatherAppId = weatherAppId;
    }

    public String getWeatherAppSecret() {
        return weatherAppSecret;
    }

    public void setWeatherAppSecret(String weatherAppSecret) {
        this.weatherAppSecret = weatherAppSecret;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getTogetherDate() {
        return togetherDate;
    }

    public void setTogetherDate(String togetherDate) {
        this.togetherDate = togetherDate;
    }

    public String getHerBirthday() {
        return herBirthday;
    }

    public void setHerBirthday(String herBirthday) {
        this.herBirthday = herBirthday;
    }

    public String getHisBirthday() {
        return hisBirthday;
    }

    public void setHisBirthday(String hisBirthday) {
        this.hisBirthday = hisBirthday;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ArrayList<String> getOpenidList() {
        return openidList;
    }

    public void setOpenidList(ArrayList<String> openidList) {
        this.openidList = openidList;
    }
}
